import time
from multiprocessing import Process
from threading import Thread
from time import sleep


# 计算密集型
def count(x, y):
    c = 0
    while c < 7000000:
        c += 1
        x += 1
        y += 1


# IO密集函数
def io():
    write()
    read()


def write():
    f = open('test.txt', 'w')
    for i in range(1500000):
        f.write("hello world\n")
    f.close()


def read():
    f = open('test.txt')
    lines = f.readlines()
    f.close()